import main from './main'
import user from './user'
import expense from './expense'

export default (app, client) => {
  app.get('/', (req, res, next) => {
    res.render('index', { title: 'R' })
  })
  app.use('/', main(app, client))
  app.use('/ex', expense(app, client))
  app.use('/user', user)
}
